home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Util / Md-Mz / MemINIT 2.0.3 Source.cpt / MemINIT 2.0.3 / MemINIT.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-12  |  1.2 KB  |  47 lines  |  [TEXT/KAHL]

  1. #include <ScreenSaverGestalt.h>
  2.  
  3.  
  4. typedef char  BBool;
  5.  
  6.  
  7. struct MemRSRCVars
  8. {
  9.     BBool            ShowIcon;
  10.                 
  11.     BBool            VBLActive;
  12.     unsigned short    VBLTime;        // Time to increment VBL task by.
  13.     unsigned long    UnitSize;        // Spacing of dots, in bytes.
  14.     RGBColor        BarColor;        // RGB color of bar.
  15.                 
  16.     BBool            PieActive;
  17.     unsigned long    PieTime;
  18.     RGBColor        PiePanColor,
  19.                     PiePieColor;
  20. };
  21. typedef struct MemRSRCVars  MemRSRCVars;
  22.  
  23. struct MemVars
  24. {
  25.     struct MemRSRCVars  RSRC;
  26.  
  27.  
  28.     VBLTask            VBLRec;
  29.     Ptr                VBLHeap;        // Heap that bar should be displaying.
  30.     BBool            ColorAvail,
  31.                     Use32BitAddr,    // Should we use 32 bit addressing for video?
  32.                     BlackColor;        // True if bar should be black.
  33.     PixMapPtr        MainPMap;        // PixMap of main screen.  This had better be locked...
  34.     long            ColorBits;        // Bit sequence for bar color.
  35.     short            ColorSize;        // # of bits of color data - for update prevention.
  36.     short            ColorIndex;        // Bits for color display.
  37.     unsigned long    PieNextUpdate;
  38.     GrafPort        PiePort;        // Port to draw pie in.
  39.  
  40.  
  41.     ProcPtr            OldDrawMBar,    // Address of unpatched DrawMBar routine.
  42.                     OldGNEFilter;    // Address of unpatched GNEFilter routine.
  43.                     
  44.     BBool            GestaltPresent,
  45.                     ScrnSaverPresent;
  46. };
  47. typedef struct MemVars  MemVars;